package com.wunong.smart.address.application.request;

import com.wunong.smart.address.client.param.SetDefaultUserAddressParam;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * 更新用户地址
 *
 * @author create by zealot.zt
 */
@Getter
@Setter
@ToString(callSuper = true)
public class SetDefaultUserAddressRequest extends BaseUserAddressRequest {

    public static SetDefaultUserAddressRequest of(SetDefaultUserAddressParam param) {
        SetDefaultUserAddressRequest request = new SetDefaultUserAddressRequest();
        request.initBasic(param);
        request.setUserId(param.getAddressId());
        request.setId(param.getAddressId());
        return request;
    }

}
